package org.javacraft.qa.model;

import java.util.Date;

/**
 *
 * @author jan
 */
public class NationalTrafficState {

  private final TrafficJamState jamState;

  private final int longestJamEver;

  public NationalTrafficState( final Date date, final int jamLength, final int longestJamEver ) {
    this.longestJamEver = longestJamEver;
    jamState = new TrafficJamState( date, jamLength );
  }

  public Date getDate() {
    return jamState.getDate();
  }

  public int getJamLength() {
    return jamState.getCurrentJamLength();
  }

  public int getLongestJamEver() {
    return longestJamEver;
  }
}
